ubus: don't expose ipv4leases if not supported
authorDavid Härdeman <[email protected]>
Sat, 4 Oct 2025 17:48:02 +0000 (19:48 +0200)
committerÁlvaro Fernández Rojas <[email protected]>
Tue, 7 Oct 2025 08:51:30 +0000 (10:51 +0200)
commit01f571dcf9fdee699764a62eaea6581bcd6fd7f5
tree4756ffd186ae5e51a3c2a0296b901658c2137b48
parent63617a2d2df02054d9d55b2aa2dd56249339fdf1
ubus: don't expose ipv4leases if not supported

This risks confusing other clients, since the "ipv4leases" method will return
an empty list. Better to not have the method available on dbus at all, so
clients will get an error when odhcpd is built without IPv4 support.

Signed-off-by: David Härdeman <[email protected]>
Link: https://github.com/openwrt/odhcpd/pull/267
Signed-off-by: Álvaro Fernández Rojas <[email protected]>
src/ubus.c